package com.btrh.util;

/**
 * @author zyy
 * @date 2020/2/18 16:30
 * @description
 */
public enum ResponseCode {
    /*成功状态码*/
    SUCCESS(200,"操作成功"),
    FAILED(201,"系统操作异常");


    private int code;
    private String message;

    ResponseCode(int code) {
        this.code = code;
    }

    ResponseCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
